package com.pvdnc.systemdebugger.testclient;

import android.util.Log;

import java.lang.reflect.Method;
import java.util.Arrays;

public class RPackageManager {
    private static final String TAG="RPackageManager";

    public static void validClass(){
        try {
            Class<?> PackageParser=Class.forName("android.content.pm.PackageParser");
            Log.d(TAG,"PackageParser:"+PackageParser.getName());
            Method parseBaseApplication=MethodUtils.getMethodByName(PackageParser,"parseBaseApplication").get(0);
            Log.d(TAG,"parseBaseApplication params:\n"+ Arrays.toString(parseBaseApplication.getParameterTypes()));
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
